<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .container {
            position: relative;
            top: 200px;
            width: 200px;
            height: 400px;
            perspective: 800px;
            transform-style: preserve-3d;
        }

        .card {
            font-size: 48px;
            font-weight: 700;
            position: absolute;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 150px;
            height: 240px;
            background-color: aqua;
            transition: all 1s;
            transform-origin: 50% 100%;
            border-radius: 5px;
            border: 2px solid rgba(rgb(22, 107, 131), green, blue, 0.8);
            box-shadow: 2px 2px 4px;
            opacity: 0.8;
            filter: hue-rotate(calc(var(--bei)*40deg));
            -webkit-box-reflect: below 1px linear-gradient(transparent, #0002);
        }

        .container:hover .card {
            transform: rotate(calc(var(--bei)*5deg)) translate(calc(var(--bei)*100px), -20px);

        }

        .container:hover .card:hover {
            transform: rotate(calc(var(--bei)*5deg)) translate(calc(var(--bei)*100px), -60px);
            z-index: 1;
        }

        .container .card:not(:hover) {
            background-color: rgb(162, 175, 175);
        }
        .container:hover .card:active{
            transform:    scale(2,2) translateY(40px) ;
            opacity: 1;
        }
        .container:active .card:not(:active){
            opacity: 0;
        }
        a {
            text-decoration: none;
            color: black;
        }

        .event {
            transform: scale(2, 2);
        }
        
    </style>
</head>

<body>
    <div class="container">
        <a class="card" style="--bei:4" data-bei=="4">1</a>
        <a class="card" style="--bei:3" data-bei="3">2</a>
        <a class="card" style="--bei:2" data-bei="2">3</a>
        <a class="card" style="--bei:1" data-bei="1">4</a>
        <a class="card" style="--bei:0" data-bei="0">5</a>
        <a class="card" style="--bei:-1" data-bei="-1">6</a>
        <a class="card" style="--bei:-2" data-bei="-2">7</a>
        <a class="card" style="--bei:-3" data-bei="-3">8</a>
        <a class="card" style="--bei:-4" data-bei="-4">9</a>
    </div>
</body>
<script>
    
</script>

</html>